import axios from '@/utils/request'

export function deskPage(params) {
  return axios({
    url: '/shop/desk/page',
    method: 'get',
    params
  })
}

export function delDesk(id) {
  return axios({
    url: '/shop/desk/del',
    method: 'get',
    params:{
      id: id
    }
  })
}

export function delBatchDesk(ids) {
  return axios({
    url: '/shop/desk/delBatch',
    method: 'get',
    params:{
      ids: ids
    }
  })
}

export function addDesk(data) {
  return axios({
    url: '/shop/desk/add',
    method: 'post',
    data
  })
}

export function deskInfo(id) {
  return axios({
    url: '/shop/desk/deskInfo',
    method: 'get',
    params:{
      id: id
    }
  })
}

export function updateDesk(data) {
  return axios({
    url: '/shop/desk/update',
    method: 'post',
    data
  })
}
